package com.ocp.socket.busi.dataAripUtils.mapper;

import com.ocp.socket.busi.dataAripUtils.bean.DataAirpVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author : zhangzh
 * @description :
 * @Date Create in 13:27 2019/3/9
 * @Modified By :
 **/
@Mapper
public interface DataAirpUtilsMapper {

    int insertDataAirp(@Param("tableName") String tableName, @Param("dataAirpVo") DataAirpVo dataAirpVo);

    /**
     * 批量插入数据
     * @param tableName 数据名称
     * @param datas     数据
     * @return
     */
    int insertDataAirps(@Param("tableName") String tableName, @Param("datas") List<DataAirpVo> datas);

    /**
     * 删除其他状态表的数据
     *
     * @param hallId
     * @return
     */
    int delStatAirpsByHallId(@Param("hallId")Integer hallId, @Param("tableName")String tableName);

    Double getAvgValByLineCode(@Param("tableList") List<String> tableList, @Param("lineCode") String lineCode, @Param("hallId") Integer hallId, @Param("startTime") String startTime, @Param("endTime") String endTime);

}
